From 674724e68643ad03c5f9a5af1efc25ffff8d643b Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Tue, 21 Apr 2009 14:49:13 +0000 Subject: [PATCH] API: (bug 18546) Added timestamp of new revision to action=edit output --- RELEASE-NOTES | 1 + includes/api/ApiEditPage.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 849d2b38d2..8003f78c3b 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -414,6 +414,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * Add parentid to prop=revisions output * (bug 17832) action=delete returns 'unknownerror' instead of 'permissiondenied' when the user is blocked +* (bug 18546) Added timestamp of new revision to action=edit output === Languages updated in 1.15 === diff --git a/includes/api/ApiEditPage.php b/includes/api/ApiEditPage.php index 1e392764ff..112083ec40 100644 --- a/includes/api/ApiEditPage.php +++ b/includes/api/ApiEditPage.php @@ -268,6 +268,8 @@ class ApiEditPage extends ApiBase { { $r['oldrevid'] = intval($oldRevId); $r['newrevid'] = intval($newRevId); + $r['newtimestamp'] = wfTimestamp(TS_ISO_8601, + $newArticle->getTimestamp()); } break; default: -- 2.20.1